<template>
	<view>
		<view class="check-item" @click="goDetail" v-for="item in collectList" :key="item.id">
			<view class="top">
				<text>沙县小吃店</text>
				<view class="priority">个体诊所</view>
			</view>
			<view class="center">
				<text>检查点编号：</text>
				<text style="color: #888">{{item['检查点']}}</text>
			</view>
			<view class="bottom">
				<text>检查点地址：</text>
				<text style="color: #888;">{{item['检查点地址']}}</text>
			</view>
			<view class="arrow"></view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			collectList: {
				type: Array,
				default: () => []
			}
		},
		data() {
			return {
				
			}
		},
		methods: {
			goDetail() {
				uni.navigateTo({
					url: '/fireGridCheck/collectRecordDetail/collectRecordDetail'
				})
			}
		}
	}
</script>

<style lang="scss">
	.check-item {
		// background-color: pink;
		position: relative;
		padding: 20rpx 35rpx 22rpx 35rpx;
		font-size: 28rpx;
		line-height: 48rpx;
		margin-bottom: -6rpx;
		background-color: #fff;
		border-bottom: 20rpx solid #F5F5F5;
		.top {
			display: flex;
			font-size: 32rpx;
			align-items: center;
			margin-bottom: 10rpx;
			&:before {
				display: inline-block;
				content: "";
				width: 6rpx;
				height: 32rpx;
				background-color: #3080FB;
				transform: translateX(-10rpx);
			}
	
			.priority {
				width: 84rpx;
				color: #3080FB;
				border: 2rpx solid #3080FB;
				font-size: 18rpx;
				text-align: center;
				height: 28rpx;
				line-height: 24rpx;
				margin-left: 18rpx;
			}
			.priority.low{
				color: #E57544;
				border: 2rpx solid #F29B76;
			}
			.priority.midium{
				color: #E57544;
				border: 2rpx solid #F29B76;
			}
			.priority.high{
				color: #E57544;
				border: 2rpx solid #F29B76;
			}
		}
		.arrow {
			width: 20rpx;
			height: 20rpx;
			border-top: 2rpx solid #999;
			border-right: 2rpx solid #999;
			transform: rotate(45deg);
			position: absolute;
			top: 77rpx;
			right: 20rpx;
		}
	}
</style>